package com.softeem.model;

import com.softeem.entity.Blog;
import com.softeem.entity.Type;
import com.softeem.entity.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Controller;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class BlogModel extends Blog {
    private Type type;

    private User user;

    @Override
    public String toString() {
        return "BlogModel{" + super.toString()+
                "type=" + type +
                ", user=" + user +
                '}';
    }
}
